﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using TecBaseObjects.Interfaces;
using TecData.Manager;
using TecTools.Forms;

namespace TecTools.Controller {
    public class OrganisationSearchController {

        #region Members

        OrganisationSearch myForm;

        #endregion

        #region Constructor

        public OrganisationSearchController(OrganisationSearch form) {
            this.myForm = form;
        }

        #endregion

        #region Methods

        public void Close(object sender, EventArgs e) {
            this.myForm.Close();
        }

        public void LoadModels(string orgName) {
            myForm.MyModel = OrganisationDataManager.SearchOrganisation(orgName);
        }

        public void RBNameStrasseCheckedChanged(object sender, EventArgs e) {
            
        }

        public void Save(IBaseObject myObject) {
        }

        #endregion

    }
}
